import { request } from './request'

/**
 * 获取轮播图数据
 */
export const _getBanner = () =>
  request({
    url: '/banner',
    params: {
      type: 0
    }
  })

/**
 * 获取推荐歌单数据
 */

export const _getMuisc = () =>
  request({
    url: '/personalized'
  })

/**
 * 获取独家放送数据
 */
export const _getPrivatecontent = () =>
  request({
    url: '/personalized/privatecontent'
  })

/*
 * 获取推荐新音乐
 */

export const _getNewsong = () =>
  request({
    url: '/personalized/newsong'
  })

/*
 * 获取热门排行榜
 */
export const _getRanklist = () =>
  request({
    url: '/toplist'
  })

/*
 * 歌手
 */
export const _getArtist = (area, type, initial = -1, limit, offset = 1) =>
  request({
    url: '/artist/list',
    params: {
      area,
      type,
      limit,
      offset,
      initial
    }
  })

/*
 * 最新歌曲
 */
export const _getTopSong = (type) =>
  request({
    url: '/top/song',
    params: {
      type
    }
  })
